package com.weizhu.swufer.core.client;

import com.google.protobuf.ByteString;
import com.weizhu.swufer.constant.SwuferConstant;
import com.weizhu.swufer.core.rpc.RpcRequest;
import com.weizhu.swufer.core.rpc.RpcResponse;
import com.weizhu.swufer.core.util.ProtoUtil;
import com.weizhu.swufer.grpc.GrpcCommonServiceGrpc;
import com.weizhu.swufer.grpc.Request;
import com.weizhu.swufer.grpc.Response;
import io.grpc.Channel;
import io.grpc.ManagedChannel;

public class RemoteChannel {

    private String ip;

    private Integer port;

    private Channel channel;

    public RemoteChannel(String ip, Integer port, Channel channel) {
        this.ip = ip;
        this.port = port;
        this.channel = channel;
    }


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }
}
